<?php


namespace Part24_IntermediaryModel\Code1;

require_once '../../autoload.php';

$jinli = new Manager('金利');
$zongjian = new Manager('宗剑');
$zhongjingli = new Manager('钟精励');

$request = new Request();
$request->setType('加薪');
$request->setContent('张三请求加薪');
$request->setNum(1000);

$jinli->getResult('经理',$request);
$zongjian->getResult('总监',$request);
$zhongjingli->getResult('总经理',$request);

$request2 = new Request();
$request2->setType('请假');
$request2->setContent('张三请假');
$request2->setNum(3);

$jinli->getResult('经理',$request2);
$zongjian->getResult('总监',$request2);
$zhongjingli->getResult('总经理',$request2);
